600
How can include the values in the inner cells in the drop down filter window

public void init()
{
	COM com_Column,com_Items;
	COMVariant s;
	anytype var_Column,var_Items;
	;

	super();

	exgantt1.DrawGridLines(-2/*exRowLines*/);
	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	exgantt1.Description(1/*exFilterBarBlanks*/,"");
	exgantt1.Description(2/*exFilterBarNonBlanks*/,"");
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Single Column")); com_Column = var_Column;
		com_Column.HTMLCaption("Single column with <b>inner cells</b>");
		com_Column.ToolTip("Click the drop down filter button, and the filter list includes the inner cells values too.");
		com_Column.DisplayFilterButton(true);
		com_Column.DisplayFilterPattern(false);
		com_Column.FilterList(64/*exIncludeInnerCells*/);
	exgantt1.ShowFocusRect(false);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		s = com_Items.SplitCell(com_Items.AddItem("S 1.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 1.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellBackColor(,s,0x1000000);
		com_Items.CellWidth(,s,84);
		s = com_Items.SplitCell(com_Items.AddItem("S 2.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 2.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellWidth(,s,84);
		s = com_Items.SplitCell(com_Items.AddItem("S 3.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 3.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellBackColor(,s,0x1000000);
		com_Items.CellWidth(,s,84);
}
599
How can I sort the value gets listed in the drop down filter window

public void init()
{
	COM com_Column,com_Column1,com_Items;
	anytype var_Column,var_Column1,var_Items;
	int h;
	;

	super();

	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.MarkSearchColumn(false);
	exgantt1.Description(0/*exFilterBarAll*/,"");
	exgantt1.Description(1/*exFilterBarBlanks*/,"");
	exgantt1.Description(2/*exFilterBarNonBlanks*/,"");
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("P1")); com_Column = var_Column;
		com_Column.DisplayFilterButton(true);
		com_Column.DisplayFilterPattern(false);
		com_Column.FilterList(16/*exSortItemsDesc*/);
	var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("P2")); com_Column1 = var_Column1;
		com_Column1.DisplayFilterButton(true);
		com_Column1.DisplayFilterPattern(false);
		com_Column1.FilterList(32/*exSortItemsAsc*/);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Z3");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"C");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Z1"),COMVariant::createFromInt(1),"B");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Z2"),COMVariant::createFromInt(1),"A");
		com_Items.ExpandItem(h,true);
}
598
Is there a way to break the hours into 15 minute increments just showing lines instead of the minute numbers

public void init()
{
	COM com_Level,com_Level1;
	anytype var_Level,var_Level1;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("2/5/2008",213)));
	exgantt1.Chart().LevelCount(3);
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(0); com_Level = var_Level;
	com_Level.Label("<b><%mmm%> <%dd%></b> <%yyyy%> ");
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(1); com_Level = var_Level;
		com_Level.Label("<%hh%>");
		com_Level.Alignment(1/*CenterAlignment*/);
	var_Level1 = COM::createFromObject(exgantt1.Chart()).Level(2); com_Level1 = var_Level1;
		com_Level1.Label("");
		com_Level1.Unit(1048576/*exMinute*/);
		com_Level1.Count(15);
	exgantt1.Chart().UnitWidth(6);
	exgantt1.EndUpdate();
}
597
How can I change the visual appearance of the milestone bar using EBN

public void init()
{
	COM com_Appearance,com_Bar,com_Bars,com_Chart,com_Items;
	anytype var_Appearance,var_Bar,var_Bars,var_Chart,var_Items;
	str var_s;
	;

	super();

	var_Appearance = exgantt1.VisualAppearance(); com_Appearance = var_Appearance;
		var_s = "gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiF4aRTHUKAAKQahLEaSZLhEZRQiqA4sS5FQBSBDQFwSByEY6mSaYJA";
		var_s = var_s + "WK4tCyNM7SfQAbxnAgYaLAAYRUjuHZOTZAc4UfAdFL/K4AKrfeZIeAiCRQGiYZyHKaRShjDwXKLIIjbJhkNoJChCNQgBScPgxCx8JypaCaar2fjQM6zWAMdb2Cz7PjDH";
		var_s = var_s + "7wPA1WYJRaDYjhcB4LheAqGXBWUYLYb8XS3EKJYhiWA4HjqFjGJpcEzPbRiNx3H6SABlLLaLo7JpGO52FrTHZjXyzLqBVpoOyEbrmcozYzjN41RpWETfQYDcwteqcLpr";
		var_s = var_s + "hGVZrm6dp8j4bAnDQP5Uh+OpcH6R4Lg2YJvEIeg6kWEoJB2ZZyG6GoLCSXxtG+IZ1GmfhJjcawNFWfB/h+V5pnUc5VhWeZ4BMX4jlySwtiAJodlEYRaBYFgHHgIA2gGE";
		var_s = var_s + "xkFUdxFl6A5hgUbgXgcVRzFiXA3CICARAEgI";
		com_Appearance.Add(1,COMVariant::createFromStr(var_s));
		com_Appearance.Add(2,"CP:1 -6 0 5 0");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("MilestoneEBN"); com_Bar = var_Bar;
			com_Bar.Color(0x2000000);
			com_Bar.Height(14);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Milestone"),"Milestone",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromUtcDateTime(str2Datetime("1/2/2001 0:00:01",213)));
		com_Items.AddBar(com_Items.AddItem("Milestone EBN "),"MilestoneEBN",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromUtcDateTime(str2Datetime("1/2/2001 0:00:01",213)));
}
596
How can I change the visual appearance of the summary bar using EBN

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Items;
	str var_s;
	;

	super();

	var_s = "gBFLBCJwBAEHhEJAEGg4BGICg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGDAADEMgyAJCIxjPIgZBoGqPBpASQJUhkMocR7HMygBI";
	var_s = var_s + "kSRNA8kMwxdQEaw9ECRIDpGaYWTFDhsABTVQRLL0Tw9ISERqoSSaGgkCYaA7CNJ0PBNJSjJ6LJZGURbKqyCQ1DBbUB3BaUaQ9JaKa7pKa7cpWKIqSxEMrxcLFcT5DSbY";
	var_s = var_s + "DxGjLEhmPZBVZQNBxtJbFQHWJCNgzVAdOAAfzQM70GpMQoWJYeVpEObSBD1dABTCBczADYoex7ID+aJuGiYVZdWxJOjfbhkTTIJAaCawABrWxR8iHN5paTnUpzDjwbg0";
	var_s = var_s + "kqRRyr+XwjA8Go/HSBp6g6KJTFcGpWmYdg8H6dJTH0EZelueBfBuLwyBMd50nIfR+kmXB4BECQUAaEYMHQHRHCGFRYI2ZAwEIExghQZA2EIQoGGoEhOgGBBYlAeYYHMW";
	var_s = var_s + "JcDcGx4HYHoHmICIFjeBohkaDAAC2DAjBYJIIiKSI2CSC5hjQJBsCOCwYiIKoGmKWJkn6DANkiWgzCwYwolAcQkksWJaCuDohlicg2hDQR+EELBInKcJohMJBomILoGm";
	var_s = var_s + "ISQuESFBOgkOQDg+SoTEyfoXCUSImDyGZhjkaI1hcJgTnoXgACYCYKG2GQkEkVJchKIoZDIbIciYKY+HEP4mlmThSg+aBIlKBYUCUKgGHyG4jEkPoKiAKI6D6EokGkSg";
	var_s = var_s + "yECF5jEKVJZD+aYqHKG4nGoCh+iKJ4qEqBokh+KYag6JoqmqKo2iWJpqgKRJHDiT5qk6NYtCsapmjiLprHqdo6i8awan6QovCwOp6kSLQsBsHpGjKbBbBaMYhm0CgalI";
	var_s = var_s + "LBtBsUpTiGUIUAQgIA==";
	exgantt1.VisualAppearance().Add(1,COMVariant::createFromStr(var_s));
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Copy("Task","Summary"); com_Bar = var_Bar;
			com_Bar.Color(0x1000000);
			com_Bar.Height(16);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Summary",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
595
How can I change the visual appearance of the task bar using EBN

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	str var_s;
	;

	super();

	var_s = "gBFLBCJwBAEHhEJAEGg4BGoCg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGLhQiSJoJDSBEgSXDIZQ5D6OZYACDJQACJYJTbAYzyPJ";
	var_s = var_s + "kPRAA6EZCmGAwCglf5HABRb7xNLkbQ8GySKJnWCQJhoD5BSLCNRUTRFFQtGgZBpEWwLCjQNQwWLKFoTJIEPSBDKqYDoKYqTgOOZOThHQz3HakQRdAa/ZpnaKpUo2d47X";
	var_s = var_s + "jMWBwGA0EzeAAGaxoShqdoiFaGU7UOJVJBOGwHK6BchoMAKbp6XoVWRaOAWLZWVABM7XLZxbLccyGfZ1XhdV5UbqUMznR7PNrjLKIJpCOJbbyAFwgBaeQABYLhK7iHRm";
	var_s = var_s + "i8XYwjMWpjFWOx1GIB5LmgdB4HCEBECSIBpDGHQOicIwokYPImikEIJj6eJIloEgogSc40FGcJEFiYZIG2VIoAURw1g2QxyAQNwNAMPJOgIYI4CoDIBmAeAKBIUpQDUK";
	var_s = var_s + "JYDoTpIB4vxgmgdgNgeYZDDoFw7CEJhQn+BohmKfImCWSZRlgYwikYMQ0gwF4DniTA/gwBJYjQYwsgoIg6AyCRQDiIJODAZBImoOguAmMZ4lQLIJjOMI3CYZJpEIT4Ki";
	var_s = var_s + "KSI6DqD5ZGAAgHC2DAjBYR4SGUGYGE+GIlCmFhRhIB5iFAbwWsiJgMhoCoxngV4ZCcSYOHaGYnHmIg8COJpoCoOISmSWZeHWHgoEkRoAg4EIYB4NogmiSgKg6GRjGoJg";
	var_s = var_s + "Fh+ZJKDaBYjmgaQygiBRUHmbhoDsTAyiqIIoioGoOw8aoKhKKoemeOIaAeF5HmqHoqiyKxKgYaN/locgBiuZRojoVIok8cwsjaMBLGqDoAhGIpoEYWYEmAIxUkQLZmgi";
	var_s = var_s + "Yg2g2I4JiCQwuAqWIOIkEAQICA==";
	exgantt1.VisualAppearance().Add(1,COMVariant::createFromStr(var_s));
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Color(0x1000000);
			com_Bar.Height(16);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
594
How can I change the visual appearance of the task bar using EBN

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	str var_s;
	;

	super();

	var_s = "gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJCjeS4ZDKHIXSxFUKTBAcSQTGyBRokaYZRi";
	var_s = var_s + "6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVbxbK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSsM";
	var_s = var_s + "QvfALCqOe45URdNp3RiVBYfI6+cZvfJLWh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA==";
	exgantt1.VisualAppearance().Add(1,COMVariant::createFromStr(var_s));
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Color(0x1000000);
			com_Bar.Height(16);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
593
How can I clip the HTML text or caption inside the bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Pattern(32/*exPatternBox*/);
		com_Bar.Height(13);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1","This is a bit of text that get's clipped");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(3));
}
592
How can I align the text/caption on the scroll bar

public void init()
{
	;

	super();

	exgantt1.ScrollPartCaption(1/*exHScroll*/,512/*exLowerBackPart*/,"left");
	exgantt1.ScrollPartCaptionAlignment(1/*exHScroll*/,512/*exLowerBackPart*/,0/*LeftAlignment*/);
	exgantt1.ScrollPartCaption(1/*exHScroll*/,128/*exUpperBackPart*/,"right");
	exgantt1.ScrollPartCaptionAlignment(1/*exHScroll*/,128/*exUpperBackPart*/,2/*RightAlignment*/);
	exgantt1.ColumnAutoResize(false);
	exgantt1.Columns().Add(1);
	exgantt1.Columns().Add(2);
	exgantt1.Columns().Add(3);
	exgantt1.Columns().Add(4);
}
591
How do I programmatically control the position of the horizontal scroll bar in the chart area, so I can specify a range of dates to scorll within

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,56);
		com_Chart.ScrollRange(0/*exStartDate*/,COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.ScrollRange(1/*exEndDate*/,COMVariant::createFromDate(str2Date("1/31/2001",213)));
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/12/2001",213)));
	exgantt1.ScrollPartCaption(2/*exHChartScroll*/,512/*exLowerBackPart*/,exgantt1.Chart().ScrollRange(0/*exStartDate*/));
	exgantt1.ScrollPartCaptionAlignment(2/*exHChartScroll*/,512/*exLowerBackPart*/,0/*LeftAlignment*/);
	exgantt1.ScrollPartCaption(2/*exHChartScroll*/,128/*exUpperBackPart*/,exgantt1.Chart().ScrollRange(1/*exEndDate*/));
	exgantt1.ScrollPartCaptionAlignment(2/*exHChartScroll*/,128/*exUpperBackPart*/,2/*RightAlignment*/);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/15/2001",213)),COMVariant::createFromDate(str2Date("1/18/2001",213)),"K1");
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/11/2001",213)),"K1");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,56);
}
*/
590
How can I programmatically control the position of the "splitter" between the item list on the left side and the gantt chart on the right

public void init()
{
	;

	super();

	/*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,196);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(true,196);
}
*/
589
How can I add a milestone bar and some text in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Milestone",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),,"<a1>text</a> outside");
		com_Items.ItemBar(h,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
}
588
How can I display or align the bar's caption or text outside of the bar

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.DefaultItemHeight(32);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"<b>to do</b>");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		com_Items.ItemBar(h,"K1",5/*exBarVAlignCaption*/,COMVariant::createFromInt(16));
}
587
How can I display or align the bar's caption or text outside of the bar

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"to do");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(16));
}
586
How can I display or align the bar's caption or text outside of the bar

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"to do ");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
}
585
Is there any option to count the non-working days
public void init()
{
	COM com_Items;
	COMVariant var_ItemBar;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
	exgantt1.Columns().Add("Task");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/4/2002",213)),"A");
		var_ItemBar = com_Items.ItemBar(h,"A",258/*exBarNonWorkingCount*/);
	exgantt1.EndUpdate();
}
584
Is there any option to count or to specify the working days
public void init()
{
	COM com_Items;
	COMVariant var_ItemBar;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
	exgantt1.Columns().Add("Task");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/4/2002",213)),"A");
		var_ItemBar = com_Items.ItemBar(h,"A",257/*exBarWorkingCount*/);
	exgantt1.EndUpdate();
}
583
How do I select the next row/item

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("Item 1");
		com_Items.AddItem("Item 2");
		com_Items.AddItem("Item 3");
		com_Items.SelectItem(com_Items.NextVisibleItem(com_Items.FocusItem()),true);
}
582
How do I define the visual appearance of the bar by using your EBN/skin files

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","EBN"); com_Bar = var_Bar;
	com_Bar.Color(0x1000000);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"EBN",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
581
Is it possible to have an "empty box" pattern for the bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","Box"); com_Bar = var_Bar;
	com_Bar.Pattern(32/*exPatternBox*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Box",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
580
How do I enable resizing ( changing the height ) the items at runtime

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.ItemsAllowSizing(-1/*exResizeItem*/);
	exgantt1.DrawGridLines(1/*exHLines*/);
	exgantt1.ScrollBySingleLine(true);
	exgantt1.Columns().Add("Column");
	exgantt1.Items().AddItem("Item 1");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.ItemHeight(com_Items.AddItem("Item 2"),48);
	exgantt1.Items().AddItem("Item 3");
}
579
How do I enable resizing all the items at runtime

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.ItemsAllowSizing(1/*exResizeAllItems*/);
	exgantt1.DrawGridLines(1/*exHLines*/);
	exgantt1.Columns().Add("Column");
	exgantt1.Items().AddItem("Item 1");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.ItemHeight(com_Items.AddItem("Item 2"),48);
	exgantt1.Items().AddItem("Item 3");
}
578
I'm trying to use the percentage display in my gantt's bars. Unfortunately, I don't see any percentage on the gantt chart

public void init()
{
	COM com_Bar,com_Bar1,com_Items;
	anytype var_Bar,var_Bar1,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","BarName"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.Pattern(6/*exPatternBDiagonal*/);
	var_Bar1 = COM::createFromObject(exgantt1.Chart().Bars()).Add("BarName%Progress"); com_Bar1 = var_Bar1;
	com_Bar1.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.4));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
}
577
How I can show Months in Time Unit panel into Roman numerals

public void init()
{
	COM com_Level;
	anytype var_Level;
	;

	super();

	exgantt1.Chart().LevelCount(2);
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(0); com_Level = var_Level;
	com_Level.Label(COMVariant::createFromInt(0));
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(1); com_Level = var_Level;
		com_Level.Label("<%mr%>");
		com_Level.Unit(16/*exMonth*/);
}
576
Can I show a bar with a different vertical position

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Opaque");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		h = com_Items.AddItem("Transparent and Opaque");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",15/*exBarOffset*/,"-3");
		com_Items.ItemBar(h,"K1",16/*exBarTransparent*/,COMVariant::createFromInt(80));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
}
575
How can I show transparent and opaque bars in the same chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Opaque");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		h = com_Items.AddItem("Transparent and Opaque");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",15/*exBarOffset*/,"-3");
		com_Items.ItemBar(h,"K1",16/*exBarTransparent*/,COMVariant::createFromInt(80));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
}
574
How can I draw bars using transparent colors

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Chart().ShowTransparentBars(60);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","TaskR"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	/*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(0,48);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A");
		com_Items.AddBar(h,"TaskR",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"B");
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
573
Can I change the Task bar so it display a Progress or a Percent bar, but it is splitted when the task intersect a non working area

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task%Progress:Split"); com_Bar = var_Bar;
		com_Bar.Shortcut("Task");
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.15));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
}
572
Can I change the Task bar so it display a Progress or a Percent bar

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task%Progress"); com_Bar = var_Bar;
		com_Bar.Shortcut("Task");
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.15));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
}
571
How can I remove the filter

public void init()
{
	COM com_Column;
	anytype var_Column;
	;

	super();

	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Column")); com_Column = var_Column;
		com_Column.DisplayFilterButton(true);
		com_Column.FilterType(1/*exBlanks*/);
	exgantt1.ApplyFilter();
	exgantt1.ClearFilter();
}
570
I use the ShowEmptyBars property, but I display seconds from 15 to 15, and the bars are not shown correctly. What can I do

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label("<%ss%>");
			com_Level.Count(15);
		com_Chart.ShowEmptyBars(15);
		com_Chart.ShowEmptyBarsUnit(16777216/*exSecond*/);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
	exgantt1.Columns().Add("Task");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromUtcDateTime(str2Datetime("1/1/2002 0:00:15",213)),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2002 0:00:15",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromUtcDateTime(str2Datetime("1/1/2002 0:01:15",213)),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2002 0:01:30",213)),"B");
		com_Items.AddLink("AB",h,"A",h,"B");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
569
I need the bar works like in the MS Project, where task from 1/1/2001 to 1/1/2001 must display 1 day

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().ShowEmptyBars(1);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/1/2001",213)));
}
568
I have a bar that has the start and end date identical. Nothing is displayed. What can I do

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().ShowEmptyBars(1);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)));
}
567
How can I display seconds and bars for 15 to 15

public void init()
{
	COM com_Bar,com_Items,com_Level;
	anytype var_Bar,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Chart().FirstVisibleDate("1/1/2002 00:00");
	exgantt1.Chart().LevelCount(2);
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(0); com_Level = var_Level;
	com_Level.Label(COMVariant::createFromInt(1048576));
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(1); com_Level = var_Level;
		com_Level.Label("<%ss%>");
		com_Level.Count(15);
	/*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(0,48);
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","Task2"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	exgantt1.Columns().Add("Task");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task","1/1/2002 00:00:15","1/1/2002 00:00:45","A");
		com_Items.AddBar(h,"Task2","1/1/2002 00:01:15","1/1/2002 00:01:45","B");
		com_Items.AddLink("AB",h,"A",h,"B");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
566
How can I copy a predefined bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
565
How can I define my own custom bar, using my icons or pictures

public void init()
{
	COM com_Bar,com_Bars,com_Items;
	anytype var_Bar,var_Bars,var_Items;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	var_Bars = exgantt1.Chart().Bars(); com_Bars = var_Bars;
		com_Bars.AddShapeCorner(COMVariant::createFromInt(12345),COMVariant::createFromInt(1));
		com_Bars.AddShapeCorner(COMVariant::createFromInt(22345),COMVariant::createFromInt(2));
		var_Bar = com_Bars.Add("T2"); com_Bar = var_Bar;
			com_Bar.StartShape(22345/*0x5749 | exShapeIconCircleUp1*/);
			com_Bar.EndShape(12345/*0x3039 | exShapeIconVBar | exShapeIconRight*/);
			com_Bar.EndColor(WinApi::RGB2int(255,0,0));
			com_Bar.Pattern(2/*exPatternDot*/);
			com_Bar.Color(WinApi::RGB2int(255,0,255));
			com_Bar.Shape(19/*exShapeThinCenter*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
564
How can I access a predefined bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
}
563
How can I access a predefined bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
}
562
How can I remove all predefined bars
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
561
How can I remove a predefined bar
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
560
How do I get the number of predefined bars
public void init()
{
	;

	super();

	exgantt1.Columns().Add(exgantt1.Chart().Bars().Count());
}
559
How can I change the height of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
		com_Bar.Height(24);
		com_Bar.EndShape(2/*exShapeIconDown1*/);
		com_Bar.EndColor(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.ItemHeight(h,28);
		com_Items.AddBar(h,"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
558
How can I change the ending shape for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.EndShape(1/*exShapeIconUp1*/);
		com_Bar.EndColor(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
557
How can I change the height of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	exgantt1.DefaultItemHeight(28);
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Height(24);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
556
How can I change the starting shape for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.StartShape(1/*exShapeIconUp1*/);
		com_Bar.StartColor(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
555
How can I change the height of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
	com_Bar.Height(17);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
554
How can I change the height for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Height(17);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
553
How can I change the color of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
552
How can I change the color for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
551
How can I change the shape for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Shape(4/*exShapeSolidDown*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
550
How can I change the shape of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
	com_Bar.Shape(19/*exShapeThinCenter*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
549
How can I change the pattern or style for all task bars

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
	com_Bar.Pattern(5/*exPatternFDiagonal*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
548
How can I change the pattern of the task bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","T2"); com_Bar = var_Bar;
	com_Bar.Pattern(5/*exPatternFDiagonal*/);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"T2",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
547
How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress:Split"); com_Bar = var_Bar;
	com_Bar.Shortcut("TS");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"TS",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"P1");
		com_Items.ItemBar(h,"P1",10/*exBarPercent*/,COMVariant::createFromReal(0.14));
		com_Items.ItemBar(h,"P1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
}
546
How can I add a bar in the chart area, so the task bar is splited for non working days or hours

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task:Split"); com_Bar = var_Bar;
	com_Bar.Shortcut("TS");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"TS",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)));
}
545
How can I add a split bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Split",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
}
544
How can I add a progress bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Progress",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
}
543
How can I add a milestone bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Milestone",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)));
}
542
How can I add a summary bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
}
541
How can I add a project summary bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Project Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
}
540
How can I add a deadline bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Deadline",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)));
}
539
How can I add a task bar in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
}
538
How can I assign a picture or an icon to a bar in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif");
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.ItemHeight(h,48);
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"<img>p1</img>");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(2));
}
537
How can I assign a picture or an icon to a bar in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"<img>1</img>");
}
536
How can I display or add an anchor or a hyperlink in the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		com_Items.AddItem("");
		com_Items.AddItem("");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"just <a1>link</a>");
}
535
How can I display a picture or an icon on the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		com_Items.AddItem("");
		com_Items.AddItem("");
		com_Items.AddItem("");
		com_Items.AddItem("");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"just <img>1</img> link");
}
534
How can I display a picture or an icon on the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		com_Items.AddItem("");
		com_Items.AddItem("");
		com_Items.AddItem("");
		com_Items.AddItem("");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"<img>pic1</img><br><br>just a link");
}
533
How can I display some HTML text or caption on link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"L<b>1</b>");
}
532
How can I assign a tooltip to a link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"L<b>1</b>");
		com_Items.Link("L1",13/*exLinkToolTip*/,"This is a bit of text that's shown when the cursor hovers the link");
}
531
Can I change the width or the size of the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",9/*exLinkStyle*/,COMVariant::createFromInt(0));
		com_Items.Link("L1",10/*exLinkWidth*/,COMVariant::createFromInt(2));
}
530
Can I change the style of the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",9/*exLinkStyle*/,COMVariant::createFromInt(4));
}
529
Can I change the color of the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",8/*exLinkColor*/,COMVariant::createFromInt(255));
}
528
Can I change the part of the bar where the link ends

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",6/*exLinkStartPos*/,COMVariant::createFromInt(1));
		com_Items.Link("L1",7/*exLinkEndPos*/,COMVariant::createFromInt(1));
}
527
Can I change the part of the bar where the link starts

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",6/*exLinkStartPos*/,COMVariant::createFromInt(0));
}
526
How can I associate an extra data to a link

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",5/*exLinkUserData*/,"your data");
}
525
How can I show or hide a specified link
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",3/*exLinkEndBar*/,COMVariant::createFromBoolean(false));
}
524
How can I get the key of the bar where the link end

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.AddItem(com_Items.Link("L1",3/*exLinkEndBar*/));
}
523
How can I get the key of the bar where the link starts

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.AddItem(com_Items.Link("L1",1/*exLinkStartBar*/));
}
522
How can I get the handle of the item where the link ends

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.AddItem(com_Items.Link("L1",2/*exLinkEndItem*/));
}
521
How can I get the handle of the item where the link starts

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.AddItem(com_Items.Link("L1",0/*exLinkStartItem*/));
}
520
How can I enumerate the links in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.AddLink("L2",h2,"K2",h1,"K1");
		com_Items.AddItem(com_Items.FirstLink());
		com_Items.AddItem(com_Items.NextLink(com_Items.FirstLink()));
}
519
How can I access the properties and method of the link between two bars

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"L<b>1</b>");
}
518
How can I remove a link between two bars
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.ClearLinks();
}
517
How can I remove a link between two bars
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.RemoveLink("L1");
}
516
How do I add a link between two bars

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1,h2;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
}
515
How do I find the number or count of bars in the item
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/1/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),"K1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K2");
		com_Items.ItemBar(h,"K2",3/*exBarCaption*/,com_Items.ItemBar(h,,256/*exBarsCount*/));
}
514
How can I assign any extra data to a bar in the chart
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",17/*exBarPattern*/,"your data");
}
513
Is there any way to change the background color for percent value being displayed on the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.35));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"K1",11/*exBarPercentCaptionFormat*/,"<bgcolor=FF0000> %p%</bgcolor>");
}
512
Is there any way to change the color for percent value being displayed on the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.35));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"K1",11/*exBarPercentCaptionFormat*/,"<fgcolor=FF0000>%p%</fgcolor>");
}
511
Is there any way to change the font for percent value being displayed on the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.35));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"K1",11/*exBarPercentCaptionFormat*/,"<b><font Tahoma;12>%%p</font></b>");
}
510
Is there any way to align the percent value being displayed on the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.75));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"K1",11/*exBarPercentCaptionFormat*/,"%p/100");
		com_Items.ItemBar(h,"K1",15/*exBarOffset*/,COMVariant::createFromInt(0));
}
509
Is there any way to change the format of the percent being displayed on the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.4));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"K1",11/*exBarPercentCaptionFormat*/,"<b>%p/100</b>");
}
508
How can I show or hide the percent value in the progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.4));
		com_Items.ItemBar(h,"K1",12/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
}
507
How can I change the percent value in a progress bar

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("Task%Progress"); com_Bar = var_Bar;
	com_Bar.Shortcut("Percent");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Percent",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.4));
}
506
How can I add a percent bar

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().Bars().Add("Task%Progress");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task%Progress",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromReal(0.4));
}
505
Can I add a bar in the chart, using your EBN files

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"," EBN ");
		com_Items.ItemBar(h,"K1",7/*exBarBackColor*/,COMVariant::createFromInt(16777216));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"K2");
}
504
How can I change the background color of the bar in the chart

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Copy("Task","TaskR"); com_Bar = var_Bar;
	com_Bar.Color(WinApi::RGB2int(255,0,0));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"TaskR",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
}
503
How can I change the background color of the bar in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",7/*exBarBackColor*/,COMVariant::createFromInt(8421504));
}
502
How can I change the background color of the HTML text or caption of the bar in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",3/*exBarCaption*/,"<bgcolor=FF0000> to do </bgcolor>");
}
501
How can I change the foreground color of the HTML text or caption of the bar in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1","t<fgcolor=0000FF>o</fgcolor> do");
		com_Items.ItemBar(h,"K1",8/*exBarForeColor*/,COMVariant::createFromInt(16777215));
}